<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="${BASE_PATH}/static/css/regist.css" />
<script type="text/javascript" src="${BASE_PATH}/static/js/jquery.js"></script>
<script type='text/javascript' src='${BASE_PATH}/static/js/jquery.form.js'></script>		
<title>注册</title>
<script type="text/javascript">
	function AjaxSubmit()
    {  
        var cValue =$("#form1").formSerialize();
        $.ajax({
            type: "POST",
            url: "${BASE_PATH}/ersp_sys/ersp_sys_org_user",
			dataType : "json",
			cache : false,
			data : cValue + "&no-cache=" + Math.round(Math.random() * 10000),
			success : onAfterSubmit
		});
	}

	function onAfterSubmit(ret) {
		//保存成功
		if (ret.Code == 1) {
			alert("数据处理成功！");
			window.location.href="${BASE_PATH}/ersp_sys/regist02";
			return;
		}

		if (ret.Code == 2) {
			alert("数据处理失败！");
			return;
		}

		//验证失败
		if (ret.Code == 3) {
			var vCtrlID = ret.ctrlID;
			var vMessage = ret.message;
			$("#" + vCtrlID).focus();
			alert(vMessage);
			return;
		}
	}
</script>
</head>
<body>
<!--head start-->
	<#include "../common/regtop.ftl"/>
<!--head end-->
<!--
	用户注册
-->
<form id="form1" >
<div class="box-2 clear-fix">
	<div class="box-01">
    	<span class="a1"></span>
        <h1>免费注册中关村学区账户</h1>
        <h2>已有账户?<a href="login" class="a2" id="cmd_login">登录</a></h2>
        <span class="line"></span>
        <ul>
        	<li><a href="###" class="a3">1.免费注册中关村学区账户</a></li>
        	<li><a href="###" class="a4">2.验证账户信息</a></li>
        	<li><a href="###" class="a5">3.注册成功</a></li>
        </ul>
        <ol>
        	<li><label>工作单位：</label>
        	<select id="org_id" name="org_id">	
				<#list org_list as rowkey>  
           		<li><option value="${rowkey.id}">${rowkey.org_name}</option>
           		</#list>	
        	</select><b>*</b>
        	</li>
        	<li><label>用&nbsp;户&nbsp;名&nbsp;：</label><input id="user_identity" name="user_identity" placeholder="请输入数字或英文或中文"/><b>*</b></li>
        	<li><label>手机号码：</label><input id="user_phone" name="user_phone"  placeholder="如：15701653783"/><b>*</b></li>
        	<li><label>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</label><input id="user_mailaddr" name="user_mailaddr"  placeholder="请输入您的邮箱"/><b>*</b></li>
        	<li><label>密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</label><input id="user_keyword" name="user_keyword"  placeholder="请输入6-20位英文或数字"/><b>*</b></li>
        	<li><label>确认密码：</label><input id="user_password" name="user_password"  placeholder="请输入6-20位英文或数字"/><b>*</b></li>
        	<li class="dp"><b>*</b><label >验&nbsp;证&nbsp;码&nbsp;：</label><input id="validcode" name="validcode" class="yz" /> <span class="s1"></span> </li>
        	<li><a href="#" class="a3" onclick="AjaxSubmit();">注册</a></li>
        </ol>
    </div>
</div>
</form>
</body>
</html>
